﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Prototype.master" AutoEventWireup="false" CodeFile="ArticleDetails.aspx.vb" Inherits="Articles_ArticleDetails" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DetailsView ID="DVArticles" runat="server" Height="50px" Width="389px" 
        DataSourceID="DSArticles">
        <Fields>
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="../Articles/ArticleRating.aspx?ID={0}" 
                HeaderText="Rating" Text="Rate It" />
        </Fields>
    </asp:DetailsView>
    <asp:SqlDataSource ID="DSArticles" runat="server" 
        ConnectionString="<%$ ConnectionStrings:myFirstDatabase %>" 
        ProviderName="<%$ ConnectionStrings:myFirstDatabase.ProviderName %>" 
        
        SelectCommand="SELECT [FirstName], [LastName], [Content], [Topic], [Title], [ID] FROM [tblArticles] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="ID" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>

